/**
 * Copyright(c) 2006-2008, FeyaSoft Inc.
 */
package("feyaSoft.desktop");

/**
 * This JS is mainly used to list actions in the desktop.
 * It is the core part of the system.
 *
 * @author fzhuang
 * @Date Oct 6, 2007
 */
feyaSoft.desktop.Donate = function() {

	var windowIndex = 0;
	
	return {	
	    /* 
	     * Pop-up contact window now with 
	     *   width:500 and height:300 
	     */
	    donateWindow : function(app, src){
	        var desktop = app.getDesktop();
            var win = desktop.getWindow('donate');
	        if(!win){
	            win = desktop.createWindow({
	                id: 'donate',
	                title:'ExtJS tutor and Standby Support',
	                width:600,
	                height:400,
	                x: 170,
	                y: 30,	                
	                autoLoad: {url: '/public/html/donation.html', scripts: true},
	                iconCls: 'donate',
	                shim:false,
	                animCollapse:false,
	                constrainHeader:true
	            });
	        }
	        win.show();
	    } 
	}
	
}();